Mollie\WooCommerce\Gateway\Surcharge A

Total Complexity 57
Dependencies 4
Dependents 7
Total lines 343
Lines of code 184
Logical lines of code 109
Comment lines 89
Methods 19
Properties 0

Methods 19

Method Rating Maintainability Complexity Lines of code
name_fixed_fee_percentage()
S
57 7 16
buildDescriptionWithSurchargeForBlock()
S
59 6 13
feeTextByType()
S
58 5 16
calculateFeeAmountOrder()
S
58 4 16
buildDescriptionWithSurcharge()
S
59 4 15
subtractTaxesFromValue()
S
62 4 11
aboveMaxLimit()
S
64 4 10
name_fixed_fee()
S
62 3 11
addMaxLimit()
S
65 3 10
name_percentage()
S
64 3 10
calculate_percentage()
S
61 2 11
maybeAddTaxString()
S
71 2 6
calculate_percentage_order()
S
65 2 9
calculate_fixed_fee()
S
77 2 3
calculateFeeAmount()
S
64 2 9
calculate_fixed_fee_percentage_order()
S
70 1 6
calculate_fixed_fee_percentage()
S
70 1 6
calculate_no_fee()
S
82 1 3
defaultFeeLabel()
S
79 1 3